{template header_static.html}
<body>
    {template header.html}
  <div class="bg"></div>

  <!--内页大图开始-->
  <div class="ban_ny" style="background-image: url({HOME_THEME_PATH}image/nybanner6.jpg);">
    <h3><span>message</span>在线留言</h3>
  </div>
  <!--内页大图结束-->
  <!--栏目分类开始-->
  <div id="side">
    <div class="wp">
      <ul id="side_gl">
      </ul>
    </div>
  </div>
  <!--栏目分类结束-->
  <div class="ny_feed">
    <div class="wp">
      <div class="n_title anim anim-1">您当前所在位置： <a href='index.html' class=''>主页</a> > <a href=''>在线留言</a></div>
      <!--留言框架开始-->
      <div class="ny_feed_ny anim anim-1">
        <div class="ny_feed_l">
          <div class="ny_feed_tit"><span>您有任何问题，请留言给我们！</span> 请填写您的联系方式，将有助于我们及时与您取得联系，尽快解决您提出的问题。</div>
          <form class="form_book" method="POST" enctype="multipart/form-data"
            action="/11964/index.php?m=home&c=Lists&a=gbook_submit&lang=cn" onsubmit="return checkForm();">
            <div class="lyb">
              <input type='text' id='attr_1' name='attr_1' value="" placeholder="姓　名">
            </div>
            <div class="lyb">
              <input type='text' id='attr_2' name='attr_2' value="" placeholder="电　话">
            </div>
            <div class="lyb">
              <textarea type='text' id='attr_3' name='attr_3' placeholder="内　容"></textarea>
            </div>
            <div class="lyb_tj">
              <input type="submit" value="提 交" name="submit" class="web_btn">
            </div>
            <input type="hidden" name="gourl" id="gourl_ba05455a4c1b03a4d6704bf98ff23b1c"
              value="https://demoall.kuaituiyun.cn/11964"><input type="hidden" name="typeid" value="26"><input
              type="hidden" name="__token__ba05455a4c1b03a4d6704bf98ff23b1c" id="ba05455a4c1b03a4d6704bf98ff23b1c"
              value="">
            <script type="text/javascript">
              function submitba05455a4c1b03a4d6704bf98ff23b1c(elements) {
                if (document.getElementById('gourl_ba05455a4c1b03a4d6704bf98ff23b1c')) {
                  document.getElementById('gourl_ba05455a4c1b03a4d6704bf98ff23b1c').value = window.location.href;
                }
                var x = elements;
                for (var i = 0; i < x.length; i++) {

                  if (x[i].name == 'attr_1' && x[i].value.length == 0) {
                    alert('姓名不能为空！');
                    return false;
                  }

                  if (x[i].name == 'attr_2' && x[i].value.length == 0) {
                    alert('电话不能为空！');
                    return false;
                  }

                }

                elements.submit();
              }

              function ey_fleshVerify(id) {
                var src = "/11964/index.php?m=api&c=Ajax&a=vertify&type=guestbook&lang=cn";
                src += "&r=" + Math.floor(Math.random() * 100);
                document.getElementById(id).src = src;
              }

              function f16f38d8c44ece2a97cd24c1b9a17d348() {
                var ajax = new XMLHttpRequest();
                ajax.open("post",
                  "/11964/index.php?m=api&c=Ajax&a=get_token&name=__token__ba05455a4c1b03a4d6704bf98ff23b1c", true);
                ajax.setRequestHeader("X-Requested-With", "XMLHttpRequest");
                ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
                ajax.send('_ajax=1');
                ajax.onreadystatechange = function () {
                  if (ajax.readyState == 4 && ajax.status == 200) {
                    document.getElementById("ba05455a4c1b03a4d6704bf98ff23b1c").value = ajax.responseText;
                    document.getElementById("gourl_ba05455a4c1b03a4d6704bf98ff23b1c").value = window.location.href;
                  }
                }
              }
              f16f38d8c44ece2a97cd24c1b9a17d348();

              function getNext1598839807(id, name, level) {
                var input = document.getElementById('attr_' + name);
                var first = document.getElementById('first_id_' + name);
                var second = document.getElementById('second_id_' + name);
                var third = document.getElementById('third_id_' + name);
                var findex = '',
                  fvalue = '',
                  sindex = '',
                  svalue = '',
                  tindex = '',
                  tvalue = '',
                  value = '';

                if (level == 1) {
                  if (second) {
                    second.style.display = 'none';
                    second.innerHTML = '';
                  }
                  if (third) {
                    third.style.display = 'none';
                    third.innerHTML = '';
                  }
                  findex = first.selectedIndex;
                  fvalue = first.options[findex].value;
                  input.value = fvalue;
                  value = fvalue;
                } else if (level == 2) {
                  if (third) {
                    third.style.display = 'none';
                    third.innerHTML = '';
                  }
                  findex = first.selectedIndex;
                  fvalue = first.options[findex].value;
                  sindex = second.selectedIndex;
                  svalue = second.options[sindex].value;
                  if (svalue) {
                    input.value = fvalue + ',' + svalue;
                    value = svalue;
                  } else {
                    input.value = fvalue;
                  }
                } else if (level == 3) {
                  findex = first.selectedIndex;
                  fvalue = first.options[findex].value;
                  sindex = second.selectedIndex;
                  svalue = second.options[sindex].value;
                  tindex = third.selectedIndex;
                  tvalue = third.options[tindex].value;
                  if (tvalue) {
                    input.value = fvalue + ',' + svalue + ',' + tvalue;
                    value = tvalue;
                  } else {
                    input.value = fvalue + ',' + svalue;
                  }
                }
                if (value) {
                  if (document.getElementById(id)) {
                    document.getElementById(id).options.add(new Option('请选择', ''));
                    var ajax = new XMLHttpRequest();
                    //步骤二:设置请求的url参数,参数一是请求的类型,参数二是请求的url,可以带参数,动态的传递参数starName到服务端
                    ajax.open("post", "/11964/index.php?m=api&c=Ajax&a=get_region&pid=" + value, true);
                    // 给头部添加ajax信息
                    ajax.setRequestHeader("X-Requested-With", "XMLHttpRequest");
                    // 如果需要像 HTML 表单那样 POST 数据，请使用 setRequestHeader() 来添加 HTTP 头。然后在 send() 方法中规定您希望发送的数据：
                    ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
                    //步骤三:发送请求+数据
                    ajax.send('_ajax=1');
                    //步骤四:注册事件 onreadystatechange 状态改变就会调用
                    ajax.onreadystatechange = function () {
                      //步骤五 如果能够进到这个判断 说明 数据 完美的回来了,并且请求的页面是存在的
                      if (ajax.readyState == 4 && ajax.status == 200) {
                        var data = JSON.parse(ajax.responseText).data;
                        if (data) {
                          data.forEach(function (item) {
                            document.getElementById(id).options.add(new Option(item.name, item.id));
                            document.getElementById(id).style.display = "block";

                          });
                        }
                      }
                    }
                  }
                }
              }
            </script>
          </form>
        </div>
        <div class="ny_feed_r"><img src="{HOME_THEME_PATH}picture/ly.jpg"></div>
      </div>
      <!--留言框架结束-->
    </div>
  </div>
  {template footer.html}
  <div id="weixin">微信号已复制，请打开微信添加咨询详情！</div>
  <script src="{HOME_THEME_PATH}js/index.js"></script>
</body>

</html>